<?php
/**
 * Desc: 错误控制器
 * Auth: Shaoming Lu<lushao1012@163.com>
 * Date: 2018/5/29
 * Time: 16:21
 */
namespace App\Http\Controllers;

use App\Http\Services\AjaxService;
use App\Http\Services\MCore;
use Illuminate\Http\Request;
use App\Http\Services\DB;

class ErrorController extends BaseController
{
    /**
     * 错误页面
     * @access  public
     * @author  Lu Shaoming<lushao1012@163.com>
     * @method  GET
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function index(Request $request)
    {
        $error = MCore::get_var('error_msg', $request, 0);
        return view('error.index', [
            'error_msg' => $error,
        ]);
    }
}